package tv.geir.slackspace.client;

import java.rmi.RemoteException;

import net.jini.core.lease.Lease;
import net.jini.core.lease.LeaseDeniedException;
import net.jini.core.lease.LeaseMap;
import net.jini.core.lease.UnknownLeaseException;
import tv.geir.slackspace.common.SlackLease;
import tv.geir.slackspace.common.SlackSpace;
import tv.geir.slackspace.common.SlackSpaceException;

public class ClientLease implements SlackLease {

	private tv.geir.slackspace.server.ServerLease remoteLease;
	@SuppressWarnings("unused")
	private SlackSpace space;
	
	public ClientLease( SlackSpace space, tv.geir.slackspace.server.ServerLease l ) {
		remoteLease = l;
		this.space = space;
	}
	
	public long getExpiration() {
		return remoteLease.getLeaseTime();
	}

	public void cancel() throws UnknownLeaseException, RemoteException {
		throw new SlackSpaceException( "Not implemented" );
	}

	public void renew(long arg0) throws LeaseDeniedException, UnknownLeaseException, RemoteException {
		throw new LeaseDeniedException( "Not implemented" );
	}

	public void setSerialFormat(int arg0) {
		throw new SlackSpaceException( "Not implemented" );
	}

	public int getSerialFormat() {
		throw new SlackSpaceException( "Not implemented" );
	}

	public LeaseMap createLeaseMap(long arg0) {
		throw new SlackSpaceException( "Not implemented" );
	}

	public boolean canBatch(Lease arg0) {
		throw new SlackSpaceException( "Not implemented" );
	}

}
